﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<upcdew_20111_group2b.CapaDominio.Residente>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>CodResidente</th>
            <th>Nom_Residente</th>
            <th>Fec_Nacimiento</th>
            <th>Tex_Correo</th>
            <th>Tex_Clave</th>
            <th>Tex_Dni</th>
            <th>Tex_Tipo_Residente</th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new { codresidente = item.CodResidente }) %> |
                <%: Html.ActionLink("Detalles", "Details", new { codresidente = item.CodResidente })%> |
                <%: Html.ActionLink("Eliminar", "Delete", new { codresidente = item.CodResidente })%>
            </td>
            <td>
                <%: item.CodResidente %>
            </td>
            <td>
                <%: item.Nom_Residente %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.Fec_Nacimiento) %>
            </td>
            <td>
                <%: item.Tex_Correo %>
            </td>
            <td>
                <%: item.Tex_Clave %>
            </td>
            <td>
                <%: item.Tex_Dni %>
            </td>
            <td>
                <%: item.Tex_Tipo_Residente %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear", "Create") %>
    </p>

</asp:Content>

